﻿using AuthenticationAPI.Models.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace AuthenticationAPI.Controllers
{
    public class CorporationController : ApiController
    {
        /// <summary>
        /// 获取所有的单位和部门的信息
        /// </summary>
        /// <returns></returns>
        [Route("api/Corporation")]
        [HttpGet]
        public HttpResponseMessage GetAllCorporations()
        {
            var list = CorporationHelper.GetAll();
            return Request.CreateResponse(HttpStatusCode.OK, list);

        }
    }
}
